package com.smartEdu.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.ArticleDao;
import com.smartEdu.mapper.ArticleMapper;
import com.smartEdu.model.ArticleModel;

@Repository(value="articleDaoImpl")
public class ArticleDaoImpl implements ArticleDao{
	@Autowired(required=false)
	@Qualifier("articleMapper")
	private ArticleMapper mapper;
	
	@Override
	public List<ArticleModel> getArticle() {
		return mapper.getArticle();
	}

	@Override
	public Map<String, Object> getArticleDetail(String pk) {
		return mapper.getArticleDetail(pk);
	}

	@Override
	public List<ArticleModel> getArticleByContent(String title) {
		// TODO Auto-generated method stub
		return mapper.getArticleByContent(title);
	}

}
